package com.module.record.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.module.record.domain.RecordControl;

import java.util.List;

/**
 * 设备控制记录
 */
public interface IRecordControlService extends IService<RecordControl> {

    /**
     * 查询设备控制记录
     * @param recordControl
     * @return
     */
    public List<RecordControl> selectRecordControlList(RecordControl recordControl);

    /**
     * 发送设备控制指令
     * @param deviceIds
     * @param controlType
     * @param controlParam
     * @param controlOrder
     * @param operName
     * @return
     */
    public String saveRecordControl(String deviceIds, String controlType, String controlParam, String controlOrder, String operName, String remark);

    /**
     * 保存设备控制记录
     *
     * @param jsonObject
     */
    public void insertDeviceInfo(JSONObject jsonObject);

    /**
     * 保存设备控制返回结果
     * @param jsonObject
     */
    public void updateRecordControl(JSONObject jsonObject);
}
